/* number Reducer */
export function numberReducer(state = 1, action: any) {
  switch (action.type) {
    case 'ADD':
      return state + 1;
    case 'DEL':
      return state - 1;
    case 'SET':
      return action.number;
    default:
      return state;
  }
}
